<?php
/**
* 这个是首页的模板
*/
class ModelShouye extends GetLoad
{
	
	public function Getinformation(){

		$reluse=$this->SQLquery("select * from information order by information_id desc");
		
		//var_dump($reluse);
		return $reluse;

	}
	public function Getname($name_id){
				$reluse=$this->SQLquery("SELECT name from name WHERE name_id='".$name_id."'");
				
				return $reluse[0]["name"];


	}

	public function Getneirong($neirong){
				$reluse=mb_substr($neirong,0,301,'utf-8');
					
				return $reluse."……";


	}

	public function jiaru(){

		$reluse=$this->SQLquery("SELECT name FROM name order by name_id desc limit 0,10");
		return $reluse;

	}


}